package cn.iocoder.yudao.module.vote.enums;
// TODO 待办：请将下面的错误码复制到 yudao-module-vote-api 模块的 ErrorCodeConstants 类中。注意，请给“TODO 补充编号”设置一个错误码编号！！！
// ========== 投票结果 TODO 补充编号 ==========

import cn.iocoder.yudao.framework.common.exception.ErrorCode;

/**
 * System 错误码枚举类
 *
 * system 系统，使用 1-002-000-000 段
 */
public interface ErrorCodeConstants {

    ErrorCode USER_RESULT_NOT_EXISTS = new ErrorCode(500100100, "投票结果不存在");
    ErrorCode USER_RESULT_MOBILE_EXISTS = new ErrorCode(500100101, "手机号已存在");
    ErrorCode USER_RESULT_SUBMIT_EXISTS = new ErrorCode(500100102, "您已投过票");


    ErrorCode INFO_NOT_EXISTS = new ErrorCode(500100200, "投票规则不存在");
    ErrorCode INFO_TIME_END = new ErrorCode(500100200, "投票时间已结束！");
    ErrorCode INFO_TIME_NOTSTART = new ErrorCode(500100200, "投票未开始！");
    ErrorCode INFO_NAME_NOT_NULL = new ErrorCode(500100900, "投票名称不能为空！");
    ErrorCode INFO_USER_HAS_VOTED = new ErrorCode(500100901, "您已投过票！");

    ErrorCode BEGIN_GT_END_TIME = new ErrorCode(500100200, "开始时间不能大于结束时间");
    ErrorCode RECORD_NOT_EXISTS = new ErrorCode(500100300, "投票记录不存在");
    ErrorCode RECORD_DETAIL_NOT_EXISTS = new ErrorCode(500100400, "投票记录详情不存在");
    ErrorCode USER_INFO_NOT_EXISTS = new ErrorCode(500100500, "用户信息不存在");
    ErrorCode USER_INFO_EXISTS = new ErrorCode(500100501, "用户信息已存在");
    ErrorCode USER_IMPORT_LIST_IS_EMPTY = new ErrorCode(500100502, "用户导入信息为空");
    ErrorCode USER_INFO_DETAIL_NOT_EXISTS = new ErrorCode(500100600, "用户信息详情不存在");

    ErrorCode CONFIG_NOT_EXISTS = new ErrorCode(500100700, "优秀最大比例配置信息不存在");
    ErrorCode CONFIG_VOTE_DEPT_EXISTS = new ErrorCode(500100701, "投票规则下的部门已存在");
    ErrorCode CONFIG_VOTE_DEPT_NOT_GROUP = new ErrorCode(500100702, "投票规则下的有用户未分组");

    ErrorCode VOTE_SUBMIT_REPEAT = new ErrorCode(500100800, "请勿重复提交");

    ErrorCode USER_RESULT_DETAIL_NOT_EXISTS = new ErrorCode(500100900, "投票结果信息详情不存在");


    // 用户 投票规则关联
    ErrorCode USER_REF_NOT_EXISTS = new ErrorCode(500200900, "用户投票规则关联不存在");
    ErrorCode USER_NOT_EXISTS = new ErrorCode(500201000, "用户不存在");

    ErrorCode DEPT_NOT_EXISTS = new ErrorCode(500301000, "部门信息不存在");
    ErrorCode DEPT_VOTE_RESULT_EXISTS= new ErrorCode(500302000, "投票结果管理引用了该部门，请先删除投票结果管理");


    ErrorCode FIELD_DYNAMICS_CONFIG_NOT_EXISTS = new ErrorCode(500401000, "表动态配置字段展示不存在");

    ErrorCode ONLINE_ENCRYPT_PARAMS_ERROR = new ErrorCode(500305000, "参数异常");
    ErrorCode NOT_NEED_SELECTED_DEPT = new ErrorCode(500305001, "无需选择部门");

}
